Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add geomean(interval) + reduce deps #171

Merged
merged 6 commits into from
Jan 29, 2024
Merged

Conversation

aplavin
Copy link
Contributor

@aplavin aplavin commented Jan 3, 2024

Statistics.mean(interval) already works, so it's only natural to add StatsBase.geomean(interval) – that's what I do here.

Also reduce deps on stdlibs:

  • Dates are just not needed, I simply removed using Dates
  • Made Random a weakdep on 1.9+

So, now IntervalSets is completely dependency-free (on 1.9+), even regarding stdlibs!

Copy link

codecov bot commented Jan 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6545e5d) 99.10% compared to head (f12cfd7) 99.11%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #171   +/-   ##
=======================================
  Coverage   99.10%   99.11%           
=======================================
  Files           4        6    +2     
  Lines         224      225    +1     
=======================================
+ Hits          222      223    +1     
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@hyrodium hyrodium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!
Just added minor comments. Other changes look good to me.

src/IntervalSets.jl Outdated Show resolved Hide resolved
Copy link
Collaborator

@hyrodium hyrodium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this PR in a few days if there are no objections.

@hyrodium hyrodium merged commit 13c76e1 into JuliaMath:master Jan 29, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants